<?php
class ControllerModuleDoitac extends Controller
{
	public function index()
	{
		$this->getList();
		$this->id="module_doitac";
		$this->template="module/doitac.tpl";
		$this->render();
	}
	
	function getList()
	{
		$this->load->model("core/media");
		$this->load->helper('image');
		
		$sitemapid = "site13";
		$mediaid = $this->request->get['mediaid'];
		$siteid = $this->user->getSiteId();
		$step = 0;
		$to = 10;
		
		//Get list
		$queryoptions = array();
		$queryoptions['mediaparent'] = '%';
		$queryoptions['mediatype'] = '%';
		$queryoptions['refersitemap'] = $sitemapid;
		
		$medias = $this->model_core_media->getPaginationList($queryoptions, $step, $to);
		$this->data = $this->model_core_media->viewNews($medias,162,82);
		
		
	}
}
?>